package com.hotel.common;

import java.util.List;

public class PageEntity<E>{

    private List<E> list;
    private int page;
    private int pageTotal;

    public PageEntity() {
    }

    public PageEntity(List<E> data, int page, int pageTotal) {
        this.list = data;
        this.page = page;
        this.pageTotal = pageTotal;
    }

    public List<E> getData() {
        return list;
    }

    public void setData(List<E> data) {
        this.list = data;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPageTotal() {
        return pageTotal;
    }

    public void setPageTotal(int pageTotal) {
        this.pageTotal = pageTotal;
    }
}
